import 'package:flutter/material.dart';

class Page2 extends StatefulWidget {
  @override
  _Page2State createState() => _Page2State();
}

class _Page2State extends State<Page2> {

  @override
  void initState() {
    print("init2");
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    print("build page2");
    return Scaffold(
      appBar: AppBar(title: Text("page2"),),
      body: Center(
        child: Text("page2"),
      ),
    );
  }
}
